﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StableDiffusionTools.Progress
{

    public delegate void ThrottlerEvent<T>(object sender, ThrottlerEventArgs<T> e);

    public class ThrottlerEventArgs<T> : EventArgs
    {
        public TimeSpan Delta { get; private set; }
        public T State { get; private set; }
        public ThrottlerEventArgs(TimeSpan delta, T state)
        {
            Delta = delta;
            State = state;
        }
        public override string ToString()
        {
            return string.Format("State: {0} Delta: {1}", State, Delta);
        }
    }
}
